<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改友情链接</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<script type="text/javascript" src="template/images/dialog-min.js"></script>
<link type="text/css" href="template/images/dialog/dialog.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function(){
	$('.q').find('ul li').click(function(){
		$index=$('.q').find('ul li').index(this);
		$('#tb').find('div').eq($index).show().siblings().hide();
	});
});
</script>
<?php
	$tech_num = (count($tech_arr)-1);
	$show_tech = $tech_arr[rand(0,$tech_num)];
?>
<script type="text/javascript">
	$(document).ready(function(){
		$str = '<?php echo $show_tech;?>';
		$('#show_tech').html("<em>小提示：</em>"+$str).fadeIn('slow');
	});
</script>
</head>

<body>
<div class="admin_position"><span>当前位置 > 修改友情链接</span><p id="show_tech" style="display:none"></p></div><!--位置-->
<div class="admin_fh"><a href="?action=link_list&lang=<?php echo $lang;?>">返回</a></div>	
<div class="order_contain">
<form name="maininfo" method="post" enctype="multipart/form-data" class="form" action="?">
<div class="order_main">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3 r">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1" style="text-align:center">网站网址:</td><td class="w2"><input type="text" name="link_url" style="width:80%" value="<?php echo $rel[0]['link_url'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">网站名称:</td><td class="w2"><input type="text" name="link_name" style="width:80%" value="<?php echo $rel[0]['link_name'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">链接类型:</td><td class="w2"><label for="f1"><input id="f1" type="radio" name="link_type" <?php if($rel[0]['link_type']==0){?>checked="checked"<?php }?> style="border:none; margin-top:3px;" value="0" />文字</label><label for="f2"><input id="f2" type="radio" <?php if($rel[0]['link_type']==1){?>checked="checked"<?php }?> name="link_type" style="border:none; margin-top:3px;" value="1" />图片</label></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">网站LOGO(88*31):</td><td class="w2"><input name="link_logo" value="<?php echo $rel[0]['link_logo'];?>" style="width:30%; display:block; float:left; margin-top:55px;" id="pic_path" />
		  <p style="margin-top:55px;" class="admin_up_pic"><a href="#" id="link_pic">上传图片</a></p><span id="show_pic_path" class="admin_show_pic"><?php if($rel[0]['link_logo']){?><a href="../upload/<?php echo $rel[0]['link_logo'];?>" target="_blank"><img src="../upload/<?php echo $rel[0]['link_logo'];?>"  height="120" width="120" border="0"/></a><?php }else{?><a href="#" id="link_pic2"><img src="../upload/no_pc.gif"  height="120" width="120"/></a> <?php }?></span>
		  </td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">排列顺序:</td><td class="w2"><input type="text" name="link_order" style="width:10%" value="<?php echo $rel[0]['link_order'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">网站说明:</td><td class="w2"><textarea name="link_info" style="width:80%; height:100px;"><?php echo $rel[0]['link_info'];?></textarea></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">站长Email:</td><td class="w2"><input type="text" name="link_mail" style="width:80%" value="<?php echo $rel[0]['link_mail'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">链接位置:</td><td class="w2">首页</td><td class="w3"></td>
		</tr>
		
	</tbody>
 </table>
 </div>

<div class="order_btn">
<input type="hidden" name="action" value="save_edit"/><input type="hidden" name="lang" value="<?php echo $lang;?>"/><input type="hidden" name="id" value="<?php echo $id;?>" />
  <input type="submit" value="修改" name="submit" class="go"/><input type="reset" style="margin:0 10px;" class="go" value="重置" name="reset"/>
 </div>
</form>
</div>
<div style="font-size:12px; color:#CCCCCC; padding:5px 0; text-align:center">powerd by <a href="http://fsai.cn" style="color:#CCCCCC" target="_blank">FOXSCMS</a></div>
<div class="ie8-height"></div>
<script type="text/javascript">
$('#link_pic').wBox({title:'链接图片',requestType: "iframe",target:"admin_pic_upload.php?type=radio&get=pic_path",iframeWH:{width:800,height:400}});
$('#link_pic2').wBox({title:'链接图片',requestType: "iframe",target:"admin_pic_upload.php?type=radio&get=pic_path",iframeWH:{width:800,height:400}});
</script>
</body>
</html>
